﻿using System.Collections.Generic;
using System.Linq;

namespace LD
{
    public class ModuleModel
    {
        public int Index { get; set; }
        public string Name { get; set; }
        public Dictionary<string, string> Parame { get; set; }

        public string GetParame(string name)
        {
            if (Parame.ContainsKey(name))
            {
                var model = Parame.Where(p => p.Key == name).FirstOrDefault();
                return model.Value;
            }
            return "0";
        }
    }
}
